let changeColor = document.getElementById('changeColor');

// 从谷歌浏览器的缓存中获取按钮颜色 #3aa757
// code:'document.querySelector(".collections-lists").style.backgroundColor = "' +color +'";',
chrome.storage.sync.get('color', function (data) {
  changeColor.style.backgroundColor = data.color;
  changeColor.setAttribute('value', data.color);
});
changeColor.onclick = function (element) {
  let color = element.target.value;
  // 拿到按钮的 颜色值
  chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
    chrome.tabs.executeScript(tabs[0].id, {
      file:'./lib/popup/clear.js'
    });
  });
};